import React from 'react'
import defImg from '@/static/images/header.png';
import styles from './index.module.less'

const UserHead = ({ data }) => {
  return (
    <div className={styles.userBox}>
      <div className={styles.imgBox}>
        <img src={data?.avatar || defImg} alt='' />
      </div>
      <div className={styles.name}>{data?.tyPatientName || data?.name}</div>
    </div>
  )
}

export default UserHead